<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>商品详情</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/product.css">
</head>

<body>
    <!-- 头部栏 -->
    <header class="lt-header">
        <h4 class="lt-title">
            <a class="lt-h-left" href="javascript:history.back();">
                <span class="fa fa-arrow-left"></span>
            </a>
            商品详情
            <a href="./index.html" class="lt-h-right">
                <span class="icon-home fa fa-home"></span>
            </a>
        </h4>
    </header>

    <!-- 主体内容部分 -->
    <div class="pro-content">
        <!--下拉刷新容器-->
        <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
            <div class="mui-scroll">
                <!-- 这里面的内容全部都是动态生成的 -->
                <!-- 轮播图 -->
                <!-- <div class="mui-slider"> -->
                    <!-- <div class="mui-slider-group mui-slider-loop"> -->
                        <!--支持循环，需要重复图片节点-->
                        <!-- <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="./images/detail.jpg" /></a></div> -->
                        <!-- <div class="mui-slider-item"><a href="#"><img src="./images/product.jpg" /></a></div> -->
                        <!-- <div class="mui-slider-item"><a href="#"><img src="./images/detail.jpg" /></a></div> -->
                        <!--支持循环，需要重复图片节点-->
                        <!-- <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="./images/product.jpg" /></a></div> -->
                    <!-- </div> -->
                    <!-- 轮播的小圆点 -->
                    <!-- <div class="mui-slider-indicator"> -->
                        <!-- <div class="mui-indicator mui-active"></div> -->
                        <!-- <div class="mui-indicator"></div> -->
                    <!-- </div> -->
                <!-- </div>  -->
                <!-- 商品描述 -->
                <!-- <p class="pro-tetail">匡威三星标1970s converse复刻 142334c 144757c三星标黑色高帮</p> -->
                <!-- 商品价格 -->
                <!-- <div class="pro-price">
                    <span>价格：</span>
                    <span class="new-price">￥499.1</span>
                    <span class="old-price">￥888.1</span>
                </div> -->
                <!-- 商品尺码 -->
                <!-- <div class="pro-size">
                    <p>尺码：</p>
                    <span>40</span>
                    <span>41</span>
                    <span>42</span>
                    <span>43</span>
                    <span>44</span>
                    <span>45</span>
                    <span>46</span>
                    <span>47</span>
                    <span>48</span>
                </div> -->
                <!-- 商品数量 -->
                <!-- <div class="pro-num"> -->
                    <!-- <span>数量：</span> -->
                    <!-- <div class="mui-numbox" data-numbox-min='0' data-numbox-max='20'> -->
                        <!-- "-"按钮，点击可减小当前数值 -->
                        <!-- <button class="mui-btn mui-numbox-btn-minus" type="button">-</button> -->
                        <!-- <input class="mui-numbox-input" type="number" /> -->
                        <!-- "+"按钮，点击可增大当前数值 -->
                        <!-- <button class="mui-btn mui-numbox-btn-plus" type="button">+</button> -->
                    <!-- </div> -->
                    <!-- <span>剩余：20件</span> -->
                <!-- </div>  -->

            </div>
        </div>
    </div>

    <!-- 底部栏 -->
    <footer>
        <a href="javascript:;" class="btn-cart mui-pull-left fa fa-shopping-cart"></a>
        <a href="javascript:;" class="add-cart mui-pull-left">加入购物车</a>
        <a href="javascript:;" class="buy-now mui-pull-right">立即购买</a>
    </footer>

</body>

<script type="text/html" id="mainTpl">
    <!-- 轮播图 -->
    <div class="mui-slider">
        <div class="mui-slider-group mui-slider-loop">
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[pic.length-1].picAddr}}" /></a></div>
                {{each pic as imgItem}}
            <div class="mui-slider-item"><a href="#"><img src="{{imgItem.picAddr}}" /></a></div>
                {{/each}}
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[0].picAddr}}" /></a></div>
        </div>
        <!-- 轮播的小圆点 -->
        <div class="mui-slider-indicator">
            {{each pic as liitem index}}
            {{if index==0}}
            <div class="mui-indicator mui-active"></div>
            {{/if}}
            {{if index!=0}}
            <div class="mui-indicator"></div>
            {{/if}}
            {{/each}}
        </div>
    </div>
    <!-- 商品描述 -->
    <p class="pro-tetail">{{proName}}</p>
    <!-- 商品价格 -->
    <div class="pro-price">
        <span>价格：</span>
        <span class="new-price">￥{{price}}</span>
        <span class="old-price">￥{{oldPrice}}</span>
    </div>
    <!-- 商品尺码 -->
    <div class="pro-size">
        <p>尺码：</p>
        {{each sizeArr as value}}
        <span>{{value}}</span>
        {{/each}}
    </div>
    <!-- 商品数量 -->
    <div class="pro-num">
        <span>数量：</span>
        <div class="mui-numbox" data-numbox-min='0' data-numbox-max='{{num}}'>
            <!-- "-"按钮，点击可减小当前数值 -->
            <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
            <input class="mui-numbox-input" type="number" />
            <!-- "+"按钮，点击可增大当前数值 -->
            <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
        </div>
        <span>剩余：{{num}}件</span>
    </div> 
</script>
<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/zepto/zepto.min.js"></script>
<!--  template.native.js 常规的语法  -->
<!--  template.js 精简的语法  -->
<script src="./assets/artTemplate/template.js"></script>
<script src="./js/common.js"></script>
<script src="./js/product.js"></script>

</html>